src\pythontemplate\bad_example.py
Finding
| 5 | |
| 6 | |
| 7 | def getHash(password: str): |
| 8 | """ |
| 9 | This is an example function for encrypting passwords. |
| 10 | |
| 11 | Args: |
| 12 | pw: The password to be encrypted. |
| 13 | """ |
| 14 | |
| 15 | return hashlib.md5(str(password).encode("utf-8")) |
| 16 | |
| 17 | |
| 18 | print(getHash(12345)) |